﻿@model LogOnModel
@{
    ViewBag.Title = @Strings.Account_SignIn;
}

<fieldset class="shaded">
    <legend>@Strings.Account_SignIn</legend>
    <div id="login-account">        
        @Html.ValidationSummary(true, Strings.Account_LoginFailure )
        @using (Html.BeginForm()) {       
            <div class="editor-label">
                <label for="Username">@Strings.Email</label>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email, new { size = 30 })
                @Html.ValidationMessageFor(m => m.Email)
            </div>
                
            <div class="editor-label">
                <label for="Password">@Strings.Password</label>
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password, new { size = 30 })
                @Html.ValidationMessageFor(m => m.Password)
            </div>
             
            <div class="editor-field">
                @Html.CheckBoxFor(m => m.RememberMe)
                <label for="RememberMe">@Strings.Account_RememberMe</label>
                <div class="account-links">
                    @Html.ActionLink( Strings.Account_ResetPassword, "ResetPassword", "Account" )
                </div>
            </div>                
            <div id="buttons">
                <input type="submit" value="@Strings.Account_SignIn" />
                @Html.CancelButton( "Index", "Post" )
            </div>
             }
    </div>
</fieldset>
